package utils

import (
	"fmt"
	"strconv"
)

func GetUnionId(id int32) string {
	return fmt.Sprintf("%d", id)
}

func GetId(unionId string) int32 {
	if id, err := strconv.ParseInt(unionId, 10, 64); err == nil {
		return int32(id)
	}
	return 0
}
